﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;
//using System.Web.Script.Serialization;
//using Newtonsoft.Json;
//using ProtoBuf;

namespace CLFramework.Web.Security
{
    public class UserInfo : IPrincipal
    {
        public Guid UserID;

        public string UserName;

        public string LoginName;

        public override string ToString()
        {
            return string.Format("UserID: {0},  UserName: {2}",
                UserID, UserName);
        }

        #region IPrincipal Members

        //[ScriptIgnore]
        //[JsonIgnore]
        public virtual IIdentity Identity
        {
            get { return null; }
        }

        public bool IsInRole(string role)
        {
            return false;
        }

        #endregion
    }
}
